<div class="div_page">
<div class="div_page_inner"> 

<div class="div_title"> <?php 
  echo phrase::__("Text hasher"); ?>
</div>
<div>&nbsp;</div>

<form method="post">
Enter a text to hash (note that text will be trimmed):<br>
<input class="inp_hash_text" name="input_text"/>
<div>&nbsp;</div>
<button type="submit">Hash it</button>
</form> <?php

$sha1 = $this->sha1;
$sha1_len = strlen($sha1);
$sha256 = hash("sha256",$this->text);
$sha256_len = strlen($sha256);
$sha512 = hash("sha512",$this->text);
$sha512_len = strlen($sha512);
$md5  = $this->md5;
$md5_len = strlen($md5);

if (strlen($this->sha1)>0) { ?>
  <div>&nbsp;</div> <?php
  echo ("
    SHA1:<br>
    <b>$sha1</b><br>
    $sha1_len characters<br><br>
    SHA256:<br>
    <b>$sha256</b><br>
    $sha256_len characters<br><br>    
    SHA512:<br>
    <b>$sha512</b><br>
    $sha512_len characters<br><br>        
    MD5:<br>
    <b>$md5</b><br>
    $md5_len characters
  ");
} ?>
</div>
</div>